﻿<!DOCTYPE html>
@using Helpers
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.Title - FilmDB</title>
    <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
    <meta name="viewport" content="width=device-width" />
    @Styles.Render("~/Content/themes/base/css")
    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")
    
</head>
<body>
    <header>
        <div class="content-wrapper">
            
                <p class="site-title">
                    <a href="@Url.Action("Index", "Home")">
                        <img src="@Url.Content("~/Images/filmdb_logo.png")" alt="FilmDB"/>
                    </a>
                </p>

            <section class="culture">
                @using (Html.BeginForm("SetCulture", "Home"))
                {                   
                   <input name="culture" id="nl-be" value="nl-be" type="image" src="@Url.Content("~/Images/nl.png")" alt="@Resources.Nederlands" title="@Resources.Nederlands"/>
                   <input name="culture" id="en-gb" value="en-gb" type="image" src="@Url.Content("~/Images/gb.png")" alt="@Resources.English" title="@Resources.English"/>
                   <input name="culture" id="fr-FR" value="fr-FR" type="image" src="@Url.Content("~/Images/fr.png")" alt="@Resources.French" title="@Resources.French"/>
                }
            </section>
            
                <section id="login">
                    @Html.Partial("_LoginPartial")
                </section>
                <nav id="menucontainer">
                    @*De custom Html.MenuItem() helper wordt hier gebruikt om menu links te renderen*@
                    <ul id="menu">
                        <li>@Html.MenuItem(Resources.Home, "Index", "Home")</li>
                        <li>@Html.MenuItem(Resources.About, "About", "Home")</li>
                        <li>@Html.MenuItem(Resources.Contact, "Index", "Contact")</li>
                        <li>@Html.MenuItem(Resources.Films, "Index", "Filmdb")</li>
                        @*name, action, controller*@
                        @if (User.IsInRole("admin")) //Ingelogd als administrator
                        {
                            <li>@Html.MenuItem(Resources.Admin, "Index", "Admin")</li>
                        }
                    </ul>
                </nav>
            
        </div>
    </header>
    <div id="body">
        @RenderSection("featured", required: false)
        <section class="content-wrapper main-content clear-fix">
            @RenderBody()
        </section>
    </div>
    <footer>
        <p id="footCopy">&copy; @DateTime.Now.Year Sien Schoofs</p>
    </footer>

    @Scripts.Render("~/bundles/filmdb")
    @RenderSection("scripts", required: false)
</body>
</html>
